body{
    margin: 0;
    padding: 0px;
}
#carousel{
    margin: auto; /* 居中 */
    width: 100%; /* 设置宽度 */
    position: relative; /* 相对定位 */
    overflow: hidden; /* 超出隐藏 */
}
#carousel img{
    position: absolute; /* 绝对定位 使图片堆叠 */
    width: 100%; /* 设定大小 按比例缩放 */
    height: 100%;
    transition: all .6s; /* 动画 */
    opacity: 0; /* 隐藏 */
}
.imgActive{
    opacity: 1 !important; /* 显示图片 最高优先级 */
}
/* 控制按钮的样式 */
#leftArrow,
#rightArrow{
    position: absolute;
    left: 5px;
    top: 43%;
    width: 25px;
    height: 30px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
}
#rightArrow{
    left: auto;
    right: 5px;
}
#sliderBtn{
    position: absolute;
    width: 100%;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    z-index: 1000;
}
.unitBtn{
    width: 10px;
    height: 10px;
    background-color: #eee;
    border-radius: 10px;
    margin: 10px;
    cursor: pointer;
}
.btnActive{
    background-color: #4C98F7;
}
#carousel a{
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.6s;
    opacity: 0;

}
#carousel img{
    position: none;
    transition: none;
    opacity: 1;
}
#carousel .imgActive{
    z-index:500;
}